<?php

namespace addon\lian\model\sqlmodel;

use think\Model;

/**
 * 会员模型 - 支持ThinkPHP模型关联
 */
class MemberModel extends Model
{
    protected $name = 'member';
    protected $pk = 'member_id';
    
    /**
     * 关联链动会员信息
     * @return \think\model\relation\HasOne
     */
    public function lianMember()
    {
        return $this->hasOne(LianMemberModel::class, 'member_id', 'member_id');
    }
}
